import { request } from '../axios/request'
//查询我的被采纳的建议
export function findMyAdoptedCommentList(doctorId: number, sessionId: string,config:{
  page:number,
  count:number
}){
  return request({
    url:"/api/health/doctor/verify/v1/findMyAdoptedCommentList",
    method:"GET",
    headers:{
      doctorId: doctorId,
      sessionId: sessionId,
    },
    params:config
  })
}
// 查询医生钱包// 我的钱包接口
export function getFindDoctorWallet(doctorId: number, sessionId: string) {
  return request({
    url: '/api/health/doctor/verify/v1/findDoctorWallet',
    headers: {
      doctorId: doctorId,
      sessionId: sessionId,
    },
    method: 'GET'
  })
}
//查询医生收支记录// 查询用户消费记录接口
export function getFindDoctorIncomeRecordList(doctorId: number, sessionId: string, config: any) {
  return request({
    url: '/api/health/doctor/verify/v1/findDoctorIncomeRecordList',
    method: 'GET',
    headers: {
      doctorId: doctorId,
      sessionId: sessionId
    },
    params: config
  })
}
// 提现接口//提现
export function getDrawCash(doctorId: number, sessionId: string, data: any) {
  return request({
    url: '/api/health/doctor/verify/v1/drawCash',
    method: 'POST',
    headers: {
      doctorId: doctorId,
      sessionId: sessionId,
      'Content-Type': 'application/json'
    },
    params: data
  })
}

// //提现记录接口//查询用户提现记录
// export function getFindDoctorDrawRecordList(doctorId: number, sessionId: string, data: any) {
//   return request({
//     url: '/api/health/doctor/verify/v1/findDoctorDrawRecordList',

//     },
//     // data: data
//   )
// }
//查询医生银行卡信息
export function findDoctorIdCardInfo(doctorId: number, sessionId: string){
  return request({
    url:"/api/health/doctor/verify/v1/findDoctorIdCardInfo",
    method:"GET",
    headers:{
       doctorId: doctorId,
       sessionId: sessionId,
    }
  })
}
//绑定身份证
export function bindDoctorIdCard(
  doctorId: number,
  sessionId: string,
  data: {
    doctorId: any
    name: any
    sex: any
    nation: any
    birthday: any
    address: any
    idNumber: any
    issueOffice: any
  }
) {
  return request({
    url: '/api/health/doctor/verify/v1/bindDoctorIdCard',
    method: 'POST',
    headers: {
      doctorId: doctorId,
      sessionId: sessionId,

    },
    data: data
  })
}
//绑定银行卡
export function bindDoctorBankCard(
  doctorId: number,
  sessionId: string,
  data: { bankCardNumber: string; bankName: string; bankCardType: number }
) {
  return request({
    url: '/api/health/doctor/verify/v1/bindDoctorBankCard',
    method: 'POST',
    headers: {
      doctorId: doctorId,
      sessionId: sessionId,
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    data: data
  })
}
//查询医生银行卡信息
export function findDoctorBankCardById(doctorId: number, sessionId: string) {
  return request({
    url: '/api/health/doctor/verify/v1/findDoctorBankCardById',
    method: 'GET',
    headers: {
      doctorId: doctorId,
      sessionId: sessionId
    }
  })
}
// //查询医生银行卡信息
// export function findDoctorBankCardById(doctorId: number, sessionId: string) {
//   return request({
//     url: '/api/health/doctor/verify/v1/findDoctorBankCardById',
//     method: 'GET',
//     headers: {
//       doctorId: doctorId,
//       sessionId: sessionId
//     }
//   })
// }


// 查询问诊医生列表
export function getFindDoctorList(deptId:number,condition:number,sortBy:number,page:number,count:number){
  return request({
    url:'/api/health/user/inquiry/v1/findDoctorList',
    method:'GET',
    params:{
      deptId,
      condition,
      sortBy,
      page,
      count
    }
  })

}
